/*
 * Copyright 2018 JDCLOUD.COM
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *    http:#www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 *
 * 
 * 
 *
 * 
 * Contact: 
 *
 * NOTE: This class is auto generated by the jdcloud code generator program.
 */


using System;
using System.Collections.Generic;
using System.Text;


namespace JDCloudSDK.User.Model
{

    /// <summary>
    ///  loginInfo
    /// </summary>
    public class LoginInfo
    {

        ///<summary>
        /// 身份类型： 1-主账号；2-子账号；3-角色；0-无(用户未登陆)
        ///</summary>
        public int? LoginType{ get; set; }
        ///<summary>
        /// 当前登录用户（type&#x3D;1 或2时，此字段生效）
        ///</summary>
        public string Pin{ get; set; }
        ///<summary>
        /// 当前登录用户的主账号（type&#x3D;2时，此字段生效）
        ///</summary>
        public string AdminPin{ get; set; }
        ///<summary>
        /// 角色身份信息(type&#x3D;3时，此字段生效)
        ///</summary>
        public CredentialInfo CredentialInfo{ get; set; }
        ///<summary>
        /// 产品线跳转的url（type&#x3D;0时，此字段生效）
        ///</summary>
        public string LoginUrl{ get; set; }
        ///<summary>
        /// 主账号登录名（type&#x3D;1，此字段不为空）
        ///</summary>
        public string LoginName{ get; set; }
    }
}
